package com.ohos.connent.accountcloud.biz.modular.dp.handler;

import com.fasterxml.jackson.core.type.TypeReference;
import com.ohos.connent.accountcloud.biz.modular.dp.entity.Card;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;

import java.util.List;

/**
 * Json类型转换Card类型集合
 *
 * @Author: ChenJiaHao
 * @Date: 2024/6/12 10:47
 * @Description:
 */
@MappedTypes(List.class)
@MappedJdbcTypes(JdbcType.VARCHAR)
public class JsonToCardListTypeHandler extends JsonBaseTypeHandler<List<Card>> {
    @Override
    protected TypeReference<List<Card>> specificType() {
        return new TypeReference<List<Card>>() {
        };
    }
}
